package cn.moukou.dictator.service.entity;

import cn.moukou.dictator.mapper.CustomFileMapper;
import cn.moukou.dictator.pojo.entity.CustomFile;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CustomFileService {
    @Autowired
    CustomFileMapper fileMapper;

    public int addOneFile(String filename, String filepath) {
        CustomFile file = new CustomFile();
        file.setFilename(filename);
        file.setFilepath(filepath);
        return fileMapper.insert(file);
    }


}
